package router

import (
	"api-client/handler/api"
	"github.com/gin-gonic/gin"
)

func Routers(r *gin.Engine) {
	v1 := r.Group("/v1")
	{
		apiGroup := v1.Group("/api")
		{
			VideoGroup(apiGroup)
		}
	}
}

func VideoGroup(group *gin.RouterGroup) {
	video := group.Group("/video")
	{
		video.POST("/upload", api.Upload)
	}
}
